package com.auxgroup.smarthome.enterprise.vo;

/**
 * 用户增长率/活跃度
 * Created by Robo on 2017/3/25.
 */
public class NewUserAddVo {
        private String cycle;
        private String start;
        private String end;
        private String gid;
        private int total;//用户总人数
        private int currAdd;//当前增加数目
        private int prevAdd;//上个时间段增加数目
        private double currAddRate;//当前增长率
        private double relativeRate;//当前时间段增加率与上个时间段增加率差值

        public String getCycle() {
            return cycle;
        }

        public void setCycle(String cycle) {
            this.cycle = cycle;
        }

        public String getStart() {
            return start;
        }

        public void setStart(String start) {
            this.start = start;
        }

        public String getEnd() {
            return end;
        }

        public void setEnd(String end) {
            this.end = end;
        }

        public String getGid() {
            return gid;
        }

        public void setGid(String gid) {
            this.gid = gid;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public double getRelativeRate() {
            return relativeRate;
        }

        public void setRelativeRate(double relativeRate) {
            this.relativeRate = relativeRate;
        }

        public int getCurrAdd() {
            return currAdd;
        }

        public void setCurrAdd(int currAdd) {
            this.currAdd = currAdd;
        }

        public double getCurrAddRate() {
            return currAddRate;
        }

        public void setCurrAddRate(double currAddRate) {
            this.currAddRate = currAddRate;
        }

        public int getPrevAdd() {
            return prevAdd;
        }

        public void setPrevAdd(int prevAdd) {
            this.prevAdd = prevAdd;
        }

    private String error_message;

        private String error_code;

        public String getError_message() {
            return error_message;
        }

        public void setError_message(String error_message) {
            this.error_message = error_message;
        }

        public String getError_code() {
            return error_code;
        }

        public void setError_code(String error_code) {
            this.error_code = error_code;
        }

        public NewUserAddVo createErrorMsg(String error_message, String error_code){
            this.error_message = error_message;
            this.error_code = error_code;
            return this;
        }

}
